package LinearList;

public class Node {
    // 存放结点数据值
    public Object data;
    // 存后继结点
    public Node next;

    // 无参构造函数
    public Node() {
        this(null, null);
    }

    public Node(Object data) {
        this(data, null);
    }

    public Node(Object data, Node next) {
        this.data = data;
        this.next = next;
    }
}
